let Utils = require("../../framework/js/utils");

require("./ui_8/pagination");

module.exports = {
    template: `
        <div class="anu-subpage" style="width: 100%;">          
            <aui-pagination :pagination="pagination" @change="onChange"></aui-pagination>
        </div>
    `,
    data() {
        var ret = {};
        ret.pagination = {
            per_page: 10,    // required
            current_page: 1, // required
            last_page: 12,    // required
        };
        return ret;
    },
    mounted() {
        var self = this;

        rootcontroller.getPage(self).attachChildComponentReady();
    },
    methods: {
        service() {
        },
        onChange(page) {
            console.log(page);
        },
        onError(e) {
            console.log('-------------------');
            console.log(e);
            console.log('-------------------');
        }
    }
};